<template>
  <div class="logs">
    <el-card>
      <el-alert :title="`共${10}条记录`" type="info" show-icon> </el-alert>
      <el-table :data="userlist" border stripe class="table">
        <el-table-column label="操作类型" prop="type"></el-table-column>
        <el-table-column label="操作人" prop="people"></el-table-column>
        <el-table-column label="执行结果" prop="result"></el-table-column>
        <el-table-column label="操作时间" prop="time"></el-table-column>
        <el-table-column label="描述" prop="describe"></el-table-column>
      </el-table>
      <div class="block">
        <el-pagination
          background
          @size-change="handleSizeChange"
          @current-change="handleCurrentChange"
          :current-page="page"
          :page-sizes="[10, 15, 20, 30]"
          :page-size="pagesize"
          layout="sizes, prev, pager, next, jumper"
          :total="counts"
        >
        </el-pagination>
      </div>
    </el-card>
  </div>
</template>
<script>
import { profile } from "@/api/base";
export default {
  name: "BaseLogsIndex",
  data() {
    return {
      counts: 20,
      page: 1,
      pagesize: 10,
      userlist: [
        {
          type: "JP",
          people: "蔡超",
          result:
            "因深安全出平各入指声可公始然下但列元业活书金但化她已况思完思离传科写。",
          time: "1973-10-04 18:44:22",
          describe: "33.48",
        },
        {
          type: "JP",
          people: "杜涛",
          result:
            "	四记导情号为者准两度命业步为以常术生加商机无做质号化最对事毛全取步京。",
          time: "2001-12-12 23:45:37",
          describe: "21.08",
        },
        {
          type: "US",
          people: "汤丽",
          result:
            "	中别命问代油究治山治制内月条线科委拉手山越整单动可龙放有度道。",
          time: "1973-10-04 18:44:22",
          describe: "33.48",
        },
        {
          type: "JP",
          people: "徐磊",
          result:
            "界证志领子候式结装者感二五石知共高设但活具争今她省转县些外头分流主始分电总。",
          time: "1974-11-05 12:41:27",
          describe: "77.67",
        },
        {
          type: "EU",
          people: "徐刚",
          result: "石党方过根定。",
          time: "1973-10-04 18:44:22",
          describe: "33.48",
        },
        {
          type: "JP",
          people: "杜涛",
          result:
            "	四记导情号为者准两度命业步为以常术生加商机无做质号化最对事毛全取步京。",
          time: "2001-12-12 23:45:37",
          describe: "21.08",
        },
      ],
    };
  },

  methods: {
    handleSizeChange(newSize) {
      this.pagesize = newSize;
    },
    handleCurrentChange(newPage) {
      this.page = newPage;
    },
  },
};
</script>
<style lang="less" scope>
.logs {
  .table {
    margin-top: 10px;
  }
  .block {
    margin-top: 5px;
  }
  .el-card {
    margin: 20px;
    min-width: 900px;
  }
}
</style>
